package com.dabai.iot.core.tsl;

import com.alibaba.fastjson2.annotation.JSONField;
import com.dabai.iot.core.tsl.specs.TslDataSpec;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 物模型命令
 *
 * @author kev1n
 */
@Data
public class TslCommand {

	/**
	 * 中文名称
	 */
	@Schema(description = "中文名称")
	@JSONField(ordinal = 1)
	private String name;

	/**
	 * 标识符
	 */
	@Schema(description = "标识符")
	@JSONField(ordinal = 2)
	private String identifier;

	/**
	 * 数据类型
	 */
	@Schema(description = "数据类型")
	@JSONField(ordinal = 3)
	private String dataType;

	@JSONField(ordinal = 4)
	private TslDataSpec dataSpecs;

}
